const express = require('express');

const router = express.Router();

/* GET home page. */
router.get('/', (req, res) => {
  res.render('index', { title: 'Express' });
});

router.get('/home', (req, res) => {
  res.render('home/home', { title: '首页' });
});

router.get('/upload_data', (req, res) => {
  res.render('upload_data/index', { title: '数据上传' });
});

router.get('/share_service', (req, res) => {
  res.render('share_service/index', { title: '服务共享' });
});

router.get('/sync_index', (req, res) => {
  res.render('sync_index/index', { title: '索引同步' });
});

module.exports = router;
